package cn.elane.elastic.core.api.controller;

import cn.elane.elastic.global.model.NameBean;
import cn.elane.elastic.global.render.R;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@io.swagger.annotations.Api(value = "Api", tags = {"基础接口"})
@RequestMapping("/api/")
@RestController
public class Api {

	@ApiOperation(value = "测试接口info", notes = "测试接口info.")
	@ApiImplicitParam(name = "param", value = "JSON对象.", paramType = "body", dataType = "Map", required = false)
	@PostMapping("api")
	public R info(@RequestBody NameBean param) {
		return R.success(param);
	}

}
